﻿package Framework.MQ
{
    import Framework.Serialize.*;

    public class MessageHead extends Object
    {
        public var command:int;
        public var channelId:int;
        public var fromIds:Array;
        public var toIds:Array;

        public function MessageHead()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeSize(this.command);
            SeqHandlerIdHelper.write(param1, this.fromIds);
            SeqHandlerIdHelper.write(param1, this.toIds);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.command = param1.readSize();
            this.fromIds = SeqHandlerIdHelper.read(param1);
            this.toIds = SeqHandlerIdHelper.read(param1);
            return;
        }// end function

    }
}
